package mulMan;

import mulMan.domain.Playlist;
import mulMan.services.PlaylistServices;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Test {

	/**
	 * @param args
	 * @throws Exception 
	 */
	public static void main(String[] args) throws Exception {
		ApplicationContext context = new ClassPathXmlApplicationContext(
				"application-context.xml");
		
		PlaylistServices ps = (PlaylistServices) context.getBean("playlistServices");
		
		Playlist p = ps.getPlaylist(1);
		System.out.println(p.getPlaylistServices().equals(ps));
		
		p.getAudioFiles().remove(1);
		//p.updatePlaylist();
		
	}
}
